package com.example.mapper;

import com.example.entity.WorkItem;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface WorkItemMapper {
    List<WorkItem> getWorkItemsByProjectId(Integer projectId);
    List<WorkItem> getAllWorkItems();
    WorkItem getWorkItemById(Integer workItemId);
    void insertWorkItem(WorkItem workItem);
    void updateWorkItem(WorkItem workItem);
    void deleteWorkItem(Integer workItemId);
    List<WorkItem> getWorkItemsByStatus(String status);
    List<WorkItem> getWorkItemsByResponsiblePerson(String responsiblePerson);
    int countWorkItemsByResponsiblePerson(String responsiblePerson, Integer projectId);
}